package com.xdtech.base.service;

import java.util.List;

import com.xdtech.common.service.IBaseService;
import com.xdtech.base.model.City;
import com.xdtech.base.vo.CityItem;

/**
 * 
 * @author max.zheng
 * @create 2015-06-02 14:02:21
 * @since 1.0
 * @see
 */
public interface CityService extends IBaseService<City>{

	/**
	 * 保存更新信息
	 * @author max.zheng
	 * @create 2015-06-02 14:02:21
	 * @modified by
	 * @param item
	 * @return
	 */
	boolean saveOrUpdateCity(CityItem item);

	/**
	 * 加载记录信息
	 * @author max.zheng
	 * @create 2015-06-02 14:02:21
	 * @modified by
	 * @param newId
	 * @return
	 */
	CityItem loadCityItem(Long cityId);

	/**
	 * 根据id号删除记录信息
	 * @author max.zheng
	 * @create 2015-06-02 14:02:21
	 * @modified by
	 * @param id
	 * @return
	 */
	boolean deleteCityInfo(long id);

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-06-02 14:02:21
	 * @modified by
	 * @param cityIds
	 */
	boolean deleteCityInfo(List<Long> cityIds);
	
	/**
	 * 加载vo列表条目
	 * @author max.zheng
	 * @create 2015-06-02 14:02:21
	 * @modified by
	 * @return
	 */
	List<CityItem> loadItems();

	/**
	 * 根据省份加载城市
	 * @author max.zheng
	 * @create 2015-6-2下午9:28:31
	 * @modified by
	 * @param provinceId
	 * @return
	 */
	List<City> loadByProvinceId(String provinceId);
}
